<?php
namespace app\index\controller;
use fast\Date;
use fast\Cols;
use app\common\controller\Frontend;


class Module extends Frontend
{
    protected $model = null;
    protected $noNeedLogin = ['getlist', 'info', 'third'];
    protected $noNeedRight = ['*'];
    public function _initialize(){
        parent::_initialize();
        $this->model = model('Module');
    }
    public function getlist(){
        $list = $this->model->order('itemid', 'desc')->select();
        for ($i=0; $i < count($list); $i++) {
            $list[$i]['createdate'] = Date::timetodate($list[$i]['createtime'],5);
            $list[$i]['updatedate'] = Date::timetodate($list[$i]['updatetime'],5);
        }
        print_r($this->request->get('result').'('.json_encode($list).')');exit;
    }

    public function info(){


    }
}


?>
